package com.mall.po;

import java.util.ArrayList;
import java.util.List;
/**
 * @ClassName BrandExample
 * @Description TODO
 * @author XueWanglin
 * @Date 2021/1/5 20:34
 * @Version 1.0
 */
public class BrandExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BrandExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBrandidIsNull() {
            addCriterion("brandid is null");
            return (Criteria) this;
        }

        public Criteria andBrandidIsNotNull() {
            addCriterion("brandid is not null");
            return (Criteria) this;
        }

        public Criteria andBrandidEqualTo(Integer value) {
            addCriterion("brandid =", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidNotEqualTo(Integer value) {
            addCriterion("brandid <>", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidGreaterThan(Integer value) {
            addCriterion("brandid >", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidGreaterThanOrEqualTo(Integer value) {
            addCriterion("brandid >=", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidLessThan(Integer value) {
            addCriterion("brandid <", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidLessThanOrEqualTo(Integer value) {
            addCriterion("brandid <=", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidIn(List<Integer> values) {
            addCriterion("brandid in", values, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidNotIn(List<Integer> values) {
            addCriterion("brandid not in", values, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidBetween(Integer value1, Integer value2) {
            addCriterion("brandid between", value1, value2, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidNotBetween(Integer value1, Integer value2) {
            addCriterion("brandid not between", value1, value2, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandnameIsNull() {
            addCriterion("brandname is null");
            return (Criteria) this;
        }

        public Criteria andBrandnameIsNotNull() {
            addCriterion("brandname is not null");
            return (Criteria) this;
        }

        public Criteria andBrandnameEqualTo(String value) {
            addCriterion("brandname =", value, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameNotEqualTo(String value) {
            addCriterion("brandname <>", value, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameGreaterThan(String value) {
            addCriterion("brandname >", value, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameGreaterThanOrEqualTo(String value) {
            addCriterion("brandname >=", value, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameLessThan(String value) {
            addCriterion("brandname <", value, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameLessThanOrEqualTo(String value) {
            addCriterion("brandname <=", value, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameLike(String value) {
            addCriterion("brandname like", value, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameNotLike(String value) {
            addCriterion("brandname not like", value, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameIn(List<String> values) {
            addCriterion("brandname in", values, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameNotIn(List<String> values) {
            addCriterion("brandname not in", values, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameBetween(String value1, String value2) {
            addCriterion("brandname between", value1, value2, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandnameNotBetween(String value1, String value2) {
            addCriterion("brandname not between", value1, value2, "brandname");
            return (Criteria) this;
        }

        public Criteria andBrandurlIsNull() {
            addCriterion("brandurl is null");
            return (Criteria) this;
        }

        public Criteria andBrandurlIsNotNull() {
            addCriterion("brandurl is not null");
            return (Criteria) this;
        }

        public Criteria andBrandurlEqualTo(String value) {
            addCriterion("brandurl =", value, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlNotEqualTo(String value) {
            addCriterion("brandurl <>", value, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlGreaterThan(String value) {
            addCriterion("brandurl >", value, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlGreaterThanOrEqualTo(String value) {
            addCriterion("brandurl >=", value, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlLessThan(String value) {
            addCriterion("brandurl <", value, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlLessThanOrEqualTo(String value) {
            addCriterion("brandurl <=", value, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlLike(String value) {
            addCriterion("brandurl like", value, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlNotLike(String value) {
            addCriterion("brandurl not like", value, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlIn(List<String> values) {
            addCriterion("brandurl in", values, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlNotIn(List<String> values) {
            addCriterion("brandurl not in", values, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlBetween(String value1, String value2) {
            addCriterion("brandurl between", value1, value2, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBrandurlNotBetween(String value1, String value2) {
            addCriterion("brandurl not between", value1, value2, "brandurl");
            return (Criteria) this;
        }

        public Criteria andBranddescribeIsNull() {
            addCriterion("branddescribe is null");
            return (Criteria) this;
        }

        public Criteria andBranddescribeIsNotNull() {
            addCriterion("branddescribe is not null");
            return (Criteria) this;
        }

        public Criteria andBranddescribeEqualTo(String value) {
            addCriterion("branddescribe =", value, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeNotEqualTo(String value) {
            addCriterion("branddescribe <>", value, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeGreaterThan(String value) {
            addCriterion("branddescribe >", value, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeGreaterThanOrEqualTo(String value) {
            addCriterion("branddescribe >=", value, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeLessThan(String value) {
            addCriterion("branddescribe <", value, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeLessThanOrEqualTo(String value) {
            addCriterion("branddescribe <=", value, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeLike(String value) {
            addCriterion("branddescribe like", value, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeNotLike(String value) {
            addCriterion("branddescribe not like", value, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeIn(List<String> values) {
            addCriterion("branddescribe in", values, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeNotIn(List<String> values) {
            addCriterion("branddescribe not in", values, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeBetween(String value1, String value2) {
            addCriterion("branddescribe between", value1, value2, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBranddescribeNotBetween(String value1, String value2) {
            addCriterion("branddescribe not between", value1, value2, "branddescribe");
            return (Criteria) this;
        }

        public Criteria andBrandviewIsNull() {
            addCriterion("brandview is null");
            return (Criteria) this;
        }

        public Criteria andBrandviewIsNotNull() {
            addCriterion("brandview is not null");
            return (Criteria) this;
        }

        public Criteria andBrandviewEqualTo(Boolean value) {
            addCriterion("brandview =", value, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewNotEqualTo(Boolean value) {
            addCriterion("brandview <>", value, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewGreaterThan(Boolean value) {
            addCriterion("brandview >", value, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewGreaterThanOrEqualTo(Boolean value) {
            addCriterion("brandview >=", value, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewLessThan(Boolean value) {
            addCriterion("brandview <", value, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewLessThanOrEqualTo(Boolean value) {
            addCriterion("brandview <=", value, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewIn(List<Boolean> values) {
            addCriterion("brandview in", values, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewNotIn(List<Boolean> values) {
            addCriterion("brandview not in", values, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewBetween(Boolean value1, Boolean value2) {
            addCriterion("brandview between", value1, value2, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandviewNotBetween(Boolean value1, Boolean value2) {
            addCriterion("brandview not between", value1, value2, "brandview");
            return (Criteria) this;
        }

        public Criteria andBrandsortIsNull() {
            addCriterion("brandsort is null");
            return (Criteria) this;
        }

        public Criteria andBrandsortIsNotNull() {
            addCriterion("brandsort is not null");
            return (Criteria) this;
        }

        public Criteria andBrandsortEqualTo(String value) {
            addCriterion("brandsort =", value, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortNotEqualTo(String value) {
            addCriterion("brandsort <>", value, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortGreaterThan(String value) {
            addCriterion("brandsort >", value, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortGreaterThanOrEqualTo(String value) {
            addCriterion("brandsort >=", value, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortLessThan(String value) {
            addCriterion("brandsort <", value, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortLessThanOrEqualTo(String value) {
            addCriterion("brandsort <=", value, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortLike(String value) {
            addCriterion("brandsort like", value, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortNotLike(String value) {
            addCriterion("brandsort not like", value, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortIn(List<String> values) {
            addCriterion("brandsort in", values, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortNotIn(List<String> values) {
            addCriterion("brandsort not in", values, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortBetween(String value1, String value2) {
            addCriterion("brandsort between", value1, value2, "brandsort");
            return (Criteria) this;
        }

        public Criteria andBrandsortNotBetween(String value1, String value2) {
            addCriterion("brandsort not between", value1, value2, "brandsort");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}